﻿using System;

namespace Space2D_Utils
{
	public static class MathUtils
	{
		public static int NOD(int a, int b)
		{
			while (b != 0)
				b = a % (a = b);
			return a;
		}

		public static Int128 NOD(Int128 a, Int128 b)
		{
			while (b != 0)
				b = a % (a = b);
			return a;
		}
	}
}
